header {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    position: relative;

    a {
        text-decoration: none;
    }

    .logo {
        display: inline-block;
        line-height: 100%;
        padding: 16px 20px;
        cursor: pointer;
        img {
            height: 25px;
        }
    }

    .search {
        width: auto;
        line-height: 57px;
        position: relative;

        input[type="text"] {
            border: none;
            height: 25px;
            width: 225px;
            color: rgba($color: #fff, $alpha: 0.8);
            caret-color: rgba($color: #fff, $alpha: 0.8);//修改闪烁光标颜色
            background: rgba($color: #000000, $alpha: 0.1);
            padding-left: 30px;
            border-radius: 15px;
            outline: none;
        }

        i {
            color: rgba($color: #fff, $alpha: 0.8);
            position: absolute;
            left: 10px;
            top: 22px;
        }
    }

    .right {
        .my {
            display: inline-block;
            color: rgba($color: #fff, $alpha: 0.8);
            line-height: 60px;
            height: 100%;
            float: left;

            .userAva {
                display: inline-block;
                width: 35px;
                height: 35px;
                border-radius: 50%;
                background: rgba($color: #000000, $alpha: 0.1);
                margin-right: 15px;
                margin-top: 12.5px;
                float: left;
                overflow: hidden;

                i {
                    font-size: 35px;
                    transform: translateY(-6px);
                }

                img {
                    width: 35px;
                    transform: translateY(-1px);
                }
            }

            a {
                float: left;
                cursor: pointer;
            }
        }

        .my:hover {
            color: #fff;
        }

        .user {
            display: inline-block;
            width: auto;
            line-height: 60px;
            padding: 0 15px;

            span {
                margin: 0 10px;
                color: rgba($color: #fff, $alpha: 0.8);
                cursor: pointer;
            }

            span:hover {
                color: #fff;
            }
        }
    }

    .loginWindow {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 99;

        form {
            position: absolute;
            top: 25%;
            left: 40%;
            background: #fff;
            border: 1px solid #ccc;
            box-shadow:  0 5px 10px #ccc;
            border-radius: 10px;
            padding: 20px 40px;

            i {
                position: absolute;
                top: 15px;
                right: 20px;
                cursor: pointer;
            }

            ul {
                line-height: normal;
                margin: 20px 0;
                li {
                    display: inline-block;
                    font-size: 24px;
                    color: red;
                    cursor: pointer;
                }

                li:nth-child(1) {
                    margin-right: 60px;
                }
            }
        }
    }

    .setting {
        position: absolute;
        right: 24px;
        top: 60px;
        background: #fff;
        border: 1px solid #ccc;
        z-index: 999;
        color: #999;
        font-size: 14px;
        
        ul {
            
            li {
                line-height: 30px;
                font-size: 14px;
                cursor: pointer;
                padding: 5px 20px;
            }

            li:hover {
                background: #eee;
            }
        }
    }
}